[INFO] cloning repository https://github.com/rahulunair/xkcd-cli
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/rahulunair/xkcd-cli" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frahulunair%2Fxkcd-cli", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frahulunair%2Fxkcd-cli'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 51136d6f3e6992cd071ffc1cf69f1509f2c3cfde
[INFO] building rahulunair/xkcd-cli against master#881c1ac408d93bb7adaa3a51dabab9266e82eee8 for issue-85264
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frahulunair%2Fxkcd-cli" "/workspace/builds/worker-2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-2/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/rahulunair/xkcd-cli on toolchain 881c1ac408d93bb7adaa3a51dabab9266e82eee8
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+881c1ac408d93bb7adaa3a51dabab9266e82eee8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking git repo https://github.com/rahulunair/xkcd-cli
[INFO] finished tweaking git repo https://github.com/rahulunair/xkcd-cli
[INFO] tweaked toml for git repo https://github.com/rahulunair/xkcd-cli written to /workspace/builds/worker-2/source/Cargo.toml
[INFO] crate git repo https://github.com/rahulunair/xkcd-cli already has a lockfile, it will not be regenerated
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+881c1ac408d93bb7adaa3a51dabab9266e82eee8" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded pin-project-lite v0.2.1
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+881c1ac408d93bb7adaa3a51dabab9266e82eee8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 8b7e50b07d4efce10965a0006dcf3cbc77f5d043c7e1b0cee9498f9e6c52e3ca
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] running `Command { std: "docker" "start" "-a" "8b7e50b07d4efce10965a0006dcf3cbc77f5d043c7e1b0cee9498f9e6c52e3ca", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "8b7e50b07d4efce10965a0006dcf3cbc77f5d043c7e1b0cee9498f9e6c52e3ca", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "8b7e50b07d4efce10965a0006dcf3cbc77f5d043c7e1b0cee9498f9e6c52e3ca", kill_on_drop: false }`
[INFO] [stdout] 8b7e50b07d4efce10965a0006dcf3cbc77f5d043c7e1b0cee9498f9e6c52e3ca
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+881c1ac408d93bb7adaa3a51dabab9266e82eee8" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 34eb8a54c9ea0d0f0b3a9b5867be88aefcd039783b6c63f0df161ca0434be975
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] running `Command { std: "docker" "start" "-a" "34eb8a54c9ea0d0f0b3a9b5867be88aefcd039783b6c63f0df161ca0434be975", kill_on_drop: false }`
[INFO] [stderr]    Compiling autocfg v1.0.1
[INFO] [stderr]    Compiling proc-macro2 v1.0.24
[INFO] [stderr]    Compiling libc v0.2.81
[INFO] [stderr]    Compiling unicode-xid v0.2.1
[INFO] [stderr]    Compiling log v0.4.11
[INFO] [stderr]    Compiling cfg-if v1.0.0
[INFO] [stderr]    Compiling lazy_static v1.4.0
[INFO] [stderr]    Compiling pin-project-lite v0.2.1
[INFO] [stderr]    Compiling cc v1.0.66
[INFO] [stderr]    Compiling pkg-config v0.3.19
[INFO] [stderr]    Compiling bitflags v1.2.1
[INFO] [stderr]    Compiling futures-core v0.3.8
[INFO] [stderr]    Compiling pin-project-internal v0.4.27
[INFO] [stderr]    Compiling foreign-types-shared v0.1.1
[INFO] [stderr]    Compiling matches v0.1.8
[INFO] [stderr]    Compiling once_cell v1.5.2
[INFO] [stderr]    Compiling hashbrown v0.9.1
[INFO] [stderr]    Compiling pin-utils v0.1.0
[INFO] [stderr]    Compiling httparse v1.3.4
[INFO] [stderr]    Compiling futures-io v0.3.8
[INFO] [stderr]    Compiling tinyvec_macros v0.1.0
[INFO] [stderr]    Compiling futures-sink v0.3.8
[INFO] [stderr]    Compiling slab v0.4.2
[INFO] [stderr]    Compiling ryu v1.0.5
[INFO] [stderr]    Compiling openssl-probe v0.1.2
[INFO] [stderr]    Compiling percent-encoding v2.1.0
[INFO] [stderr]    Compiling unicode-segmentation v1.7.1
[INFO] [stderr]    Compiling encoding_rs v0.8.26
[INFO] [stderr]    Compiling tower-service v0.3.0
[INFO] [stderr]    Compiling unicode-width v0.1.8
[INFO] [stderr]    Compiling serde_json v1.0.61
[INFO] [stderr]    Compiling os_str_bytes v2.4.0
[INFO] [stderr]    Compiling strsim v0.10.0
[INFO] [stderr]    Compiling mime v0.3.16
[INFO] [stderr]    Compiling base64 v0.13.0
[INFO] [stderr]    Compiling vec_map v0.8.2
[INFO] [stderr]    Compiling ipnet v2.3.0
[INFO] [stderr]    Compiling termcolor v1.1.2
[INFO] [stderr]    Compiling proc-macro-error-attr v1.0.4
[INFO] [stderr]    Compiling proc-macro-error v1.0.4
[INFO] [stderr]    Compiling unicode-bidi v0.3.4
[INFO] [stderr]    Compiling http v0.2.2
[INFO] [stderr]    Compiling foreign-types v0.3.2
[INFO] [stderr]    Compiling futures-channel v0.3.8
[INFO] [stderr]    Compiling tracing-core v0.1.17
[INFO] [stderr]    Compiling futures-task v0.3.8
[INFO] [stderr]    Compiling tinyvec v1.1.0
[INFO] [stderr]    Compiling form_urlencoded v1.0.0
[INFO] [stderr]    Compiling textwrap v0.12.1
[INFO] [stderr]    Compiling tokio v1.0.1
[INFO] [stderr]    Compiling indexmap v1.6.1
[INFO] [stderr]    Compiling heck v0.3.2
[INFO] [stderr]    Compiling tracing v0.1.22
[INFO] [stderr]    Compiling want v0.3.0
[INFO] [stderr]    Compiling serde_urlencoded v0.7.0
[INFO] [stderr]    Compiling quote v1.0.8
[INFO] [stderr]    Compiling openssl-sys v0.9.60
[INFO] [stderr]    Compiling num_cpus v1.13.0
[INFO] [stderr]    Compiling mio v0.7.7
[INFO] [stderr]    Compiling socket2 v0.3.19
[INFO] [stderr]    Compiling atty v0.2.14
[INFO] [stderr]    Compiling syn v1.0.58
[INFO] [stderr]    Compiling unicode-normalization v0.1.16
[INFO] [stderr]    Compiling openssl v0.10.32
[INFO] [stderr]    Compiling native-tls v0.2.7
[INFO] [stderr]    Compiling http-body v0.4.0
[INFO] [stderr]    Compiling idna v0.2.0
[INFO] [stderr]    Compiling url v2.2.0
[INFO] [stderr]    Compiling tokio-stream v0.1.1
[INFO] [stderr]    Compiling tokio-native-tls v0.3.0
[INFO] [stderr]    Compiling tokio-util v0.6.0
[INFO] [stderr]    Compiling pin-project-internal v1.0.3
[INFO] [stderr]    Compiling clap_derive v3.0.0-beta.2
[INFO] [stderr]    Compiling serde_derive v1.0.118
[INFO] [stderr]    Compiling pin-project v1.0.3
[INFO] [stderr]    Compiling futures-util v0.3.8
[INFO] [stderr]    Compiling pin-project v0.4.27
[INFO] [stderr]    Compiling tracing-futures v0.2.4
[INFO] [stderr]    Compiling clap v3.0.0-beta.2
[INFO] [stderr]    Compiling h2 v0.3.0
[INFO] [stderr]    Compiling hyper v0.14.2
[INFO] [stderr]    Compiling hyper-tls v0.5.0
[INFO] [stderr]    Compiling reqwest v0.11.0
[INFO] [stderr]    Compiling xkcd-cli v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Duration`
[INFO] [stdout]   --> src/main.rs:90:22
[INFO] [stdout]    |
[INFO] [stdout] 90 |             .timeout(Duration::from_secs(self.args.timeout))
[INFO] [stdout]    |                      ^^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]    |
[INFO] [stdout] 1  | use core::time::Duration;
[INFO] [stdout]    |
[INFO] [stdout] 1  | use std::time::Duration;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Serialize`
[INFO] [stdout]  --> src/main.rs:3:33
[INFO] [stdout]   |
[INFO] [stdout] 3 | use serde_derive::{Deserialize, Serialize};
[INFO] [stdout]   |                                 ^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/main.rs:84:26
[INFO] [stdout]    |
[INFO] [stdout] 84 |         let url = if let Some(n) = self.args.num {
[INFO] [stdout]    |                          ^^^^^^^   ------------- this expression has type `usize`
[INFO] [stdout]    |                          |
[INFO] [stdout]    |                          expected `usize`, found enum `std::option::Option`
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected type `usize`
[INFO] [stdout]               found enum `std::option::Option<_>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `try_into` found for struct `std::string::String` in the current scope
[INFO] [stdout]    --> src/main.rs:92:73
[INFO] [stdout]     |
[INFO] [stdout] 92  |         let resp: ComicResponse = http_client.get(&url).send()?.text()?.try_into()?;
[INFO] [stdout]     |                                                                         ^^^^^^^^ method not found in `std::string::String`
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is in scope
[INFO] [stdout] help: the following trait is implemented but not in scope; perhaps add a `use` for it:
[INFO] [stdout]     |
[INFO] [stdout] 1   | use std::convert::TryInto;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `save` found for struct `Comic` in the current scope
[INFO] [stdout]   --> src/main.rs:95:19
[INFO] [stdout]    |
[INFO] [stdout] 50 | struct Comic {
[INFO] [stdout]    | ------------ method `save` not found for this
[INFO] [stdout] ...
[INFO] [stdout] 95 |             comic.save()?;
[INFO] [stdout]    |                   ^^^^ method not found in `Comic`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no variant or associated item named `Json` found for enum `OutFormat` in the current scope
[INFO] [stdout]    --> src/main.rs:107:24
[INFO] [stdout]     |
[INFO] [stdout] 25  | pub enum OutFormat {
[INFO] [stdout]     | ------------------ variant or associated item `Json` not found here
[INFO] [stdout] ...
[INFO] [stdout] 107 |             OutFormat::Json => println!("{}", todo!("print self as JSON")),
[INFO] [stdout]     |                        ^^^^ variant or associated item not found in `OutFormat`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable expression
[INFO] [stdout]    --> src/main.rs:106:47
[INFO] [stdout]     |
[INFO] [stdout] 106 |             OutFormat::Text => println!("{}", todo!("print self as Text")),
[INFO] [stdout]     |                                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |                                               |
[INFO] [stdout]     |                                               unreachable expression
[INFO] [stdout]     |                                               any code following this expression is unreachable
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unreachable_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable expression
[INFO] [stdout]    --> src/main.rs:107:47
[INFO] [stdout]     |
[INFO] [stdout] 107 |             OutFormat::Json => println!("{}", todo!("print self as JSON")),
[INFO] [stdout]     |                                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |                                               |
[INFO] [stdout]     |                                               unreachable expression
[INFO] [stdout]     |                                               any code following this expression is unreachable
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/main.rs:113:14
[INFO] [stdout]     |
[INFO] [stdout] 113 | fn main() -> Result<()> {
[INFO] [stdout]     |    ----      ^^^^^^^^^^ expected enum `Result`, found `()`
[INFO] [stdout]     |    |
[INFO] [stdout]     |    implicitly returns `()` as its body has no tail or `return` expression
[INFO] [stdout] ...
[INFO] [stdout] 116 |     client.run();
[INFO] [stdout]     |                 - help: consider removing this semicolon
[INFO] [stdout]     |
[INFO] [stdout]     = note:   expected enum `Result<(), anyhow::Error>`
[INFO] [stdout]             found unit type `()`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 6 previous errors; 3 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0308, E0433, E0599.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0308`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `xkcd-cli`
[INFO] [stderr] 
[INFO] [stderr] To learn more, run the command again with --verbose.
[INFO] running `Command { std: "docker" "inspect" "34eb8a54c9ea0d0f0b3a9b5867be88aefcd039783b6c63f0df161ca0434be975", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "34eb8a54c9ea0d0f0b3a9b5867be88aefcd039783b6c63f0df161ca0434be975", kill_on_drop: false }`
[INFO] [stdout] 34eb8a54c9ea0d0f0b3a9b5867be88aefcd039783b6c63f0df161ca0434be975
